# --
\begin{math}
   f(x) = \left\{
     \begin{array}{lr}
       1 & : x \in \mathbb{Q}\\
       0 & : x \notin \mathbb{Q}
     \end{array}
   \right.
\end{math}